package com.java.shop.product.feign;

import com.java.common.to.es.SkuEsModel;
import com.java.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("shop-third-party")
public interface ThirdPartFeignService {
    @PostMapping("/thirdparty/es/product")
    R productStatusUp(@RequestBody List<SkuEsModel> skuEsModels);

    @GetMapping("/seckill/getCurrentSeckillSkus")
    R getCurrentSeckillSkus();
}
